import requests
from base.http import Request, Response


class Login:
    def login(self, username, password) -> Response:
        request = Request()
        request.path = '/wx/auth/login'
        request.method = 'post'
        request.data = {
            'username': username,
            'password': password
                         }
        r = request.send()

        return r

    def logout(self):
        pass

if __name__ == "__main__":
    Login = Login()
    r = Login.login('tqx', "123456")
    print(r.status_code)